package com.grablist.feihu.grablist.base;


import rx.subscriptions.CompositeSubscription;

/**
 * Created by chenjian on 16/6/6.
 */
public class BaseBiz {
    public final static String UPLOAD_IMG = "BaseBiz.upload";

    protected CompositeSubscription com;

    public interface Callback<T> {
        void onSuccess(T t);

        void onFailure(T t);
    }

    public BaseBiz() {
        com = new CompositeSubscription();
    }

    public void onDestory() {
        if (!com.isUnsubscribed()) {
            com.unsubscribe();
        }
    }

}
